import request from '@/utils/request'

export function queryMoreParam(query) {
  return request({
    url: '/basic/hourMain/moreParam',
    method: 'get',
    params: query
  })
}

export function report(query) {
  return request({
    url: '/basic/hourMain/report',
    method: 'get',
    params: query
  })
}

export function genHourData(query) {
  return request({
    url: '/basic/hourMain/genHourData',
    method: 'get',
    params: query
  })
}

// 查询小时数据main列表
export function listHourMain(query) {
  return request({
    url: '/basic/hourMain/list',
    method: 'get',
    params: query
  })
}

// 查询小时数据main详细
export function getHourMain(id) {
  return request({
    url: '/basic/hourMain/' + id,
    method: 'get'
  })
}

// 新增小时数据main
export function addHourMain(data) {
  return request({
    url: '/basic/hourMain',
    method: 'post',
    data: data
  })
}

// 修改小时数据main
export function updateHourMain(data) {
  return request({
    url: '/basic/hourMain',
    method: 'put',
    data: data
  })
}

// 删除小时数据main
export function delHourMain(id) {
  return request({
    url: '/basic/hourMain/' + id,
    method: 'delete'
  })
}

// 导出小时数据main
export function exportHourMain(query) {
  return request({
    url: '/basic/hourMain/export',
    method: 'get',
    params: query
  })
}
